package com.hp.java11_springboot_mp_vue_elementui.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hp.java11_springboot_mp_vue_elementui.entity.SProduct;
import com.hp.java11_springboot_mp_vue_elementui.mapper.SProductMapper;
import com.hp.java11_springboot_mp_vue_elementui.service.ISProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author heng
 * @since 2021-04-07
 */
@Service
public class SProductServiceImpl extends ServiceImpl<SProductMapper, SProduct> implements ISProductService {

    @Autowired
    private SProductMapper productMapper;

    @Override
    public IPage<SProduct> pageProducts(IPage<SProduct> page) {
        return productMapper.pageProducts(page);
    }
}
